#for循环打印九九乘法表2
i=8
for a in range(1,10):
    print(' '*7*i,end='')
    for b in range(1,10):
        if b<=a:
            print('{}*{}={:<2}'.format(a,b,a*b),end=' ')
    i-=1
    print('')
print('='*62)
j=0
for a in range(9,0,-1):
    print(' '*7*j,end='')
    for b in range(1,10):
        if b<=a:
            print('{}*{}={:<2}'.format(a,b,a*b),end=' ')
    j+=1
    print('')